package com.baizhi.feign;

import com.baizhi.po.FeedVideoPO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("VIDEOS")
public interface VideoFeign {

    @GetMapping("following")
    List<Integer> queryAllFollowingByUserId(@RequestParam("uid") Integer uid);

    @GetMapping("videos/feed/{videoId}")
    FeedVideoPO queryByVideosId(@PathVariable("videoId") Integer id);


}
